/*
 * Created on 2005-5-3
 *
 */
package net.risesoft.risereport.obj.authorization.service;

import java.util.Collection;
import java.util.List;

import net.risesoft.risereport.obj.authorization.dao.AuthorizationDAO;
import net.risesoft.risereport.obj.authorization.domain.User;
import net.risesoft.risereport.obj.common.ServiceException;
import net.risesoft.risereport.obj.common.id.IDGenerator;

/**
 * <p>
 * Title: RiseReport
 * </p>
 * <p>
 * Description: RiseReport
 * </p>
 * <p>
 * Copyright: Copyright (c) 2006
 * </p>
 * <p>
 * Company: SZRiseSoft
 * </p>
 * 
 * @author WangChui(baiyibing@gmail.com)
 * @version 2.0 TODO
 * 
 */
public class AuthorizationServiceImpl implements AuthorizationService {

	private AuthorizationDAO dao;
	
	private IDGenerator idGenerator;

	public AuthorizationDAO getDao() {
		return dao;
	}

	public void setDao(AuthorizationDAO dao) {
		this.dao = dao;
	}

	public IDGenerator getIdGenerator() {
		return idGenerator;
	}

	public void setIdGenerator(IDGenerator idGenerator) {
		this.idGenerator = idGenerator;
	}

	public Collection findAllUser() throws ServiceException {
		// TODO Auto-generated method stub
		return dao.findAllUser();
	}

	public User findUserByNameAndPwd(String name,String pwd) throws ServiceException {
		// TODO Auto-generated method stub
		return dao.findUserByNameAndPwd(name,pwd);
	}



}
